/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package structure;

import algorithm.BlobFinder.Blob;
import java.awt.Point;
import java.util.ArrayList;

/**
 *
 * @author mwiatrowski
 */
public class StructureData {

    private Point p1;
    private Point p2;
    private ArrayList<Blob> rect;

    public StructureData(Point p1, Point p2, ArrayList<Blob> rect) {
        this.p1 = p1;
        this.p2 = p2;
        this.rect = rect;
    }

    public ArrayList<Blob> getRect() {
        return rect;
    }

    public void setRect(ArrayList<Blob> rect) {
        this.rect = rect;
    }

    public Blob getBlob(int index) {
        return rect.get(index);
    }

    public Point getP1() {
        return p1;
    }

    public void setP1(Point p1) {
        this.p1 = p1;
    }

    public Point getP2() {
        return p2;
    }

    public void setP2(Point p2) {
        this.p2 = p2;
    }
}
